import axios from '@/libs/api.request'
const prefix = '/oms/merchant/payment/channel'
// 支付通道列表
export const getPassagewayLists = data => axios.request({
  url: `${prefix}/query/page`,
  method: 'post',
  data
})
// 支付通道详情
export const getPassagewayDetail = data => axios.request({
  url: `${prefix}/get`,
  method: 'post',
  data
})
// 支付通道新增
export const addPassageway = data => axios.request({
  url: `${prefix}/save`,
  method: 'post',
  data
})
// 支付通道删除
export const deletePassageway = data => axios.request({
  url: `${prefix}/delete`,
  method: 'post',
  data
})
// 支付通道更新
export const updatePassageway = data => axios.request({
  url: `${prefix}/update`,
  method: 'post',
  data
})
// 验证能否编辑
export const updatePassagewayVerify = data => axios.request({
  url: `${prefix}/update/verify`,
  method: 'post',
  data
})
// 开启关闭
export const updatePassagewayStatus = data => axios.request({
  url: `${prefix}/update/status`,
  method: 'post',
  data
})
